package top.yokey.shopnc.model;

import top.yokey.base.base.BaseHttpClient;
import top.yokey.base.base.BaseHttpListener;

@SuppressWarnings("ALL")
public class ArticleModel {

    private final String ACT = "article";
    private static volatile ArticleModel instance;

    public static ArticleModel get() {
        if (instance == null) {
            synchronized (ArticleModel.class) {
                if (instance == null) {
                    instance = new ArticleModel();
                }
            }
        }
        return instance;
    }

    public void articleList(BaseHttpListener baseHttpListener) {

        BaseHttpClient.get().ready(ACT, "article_list")
                .add("ac_id", "1")
                .get(baseHttpListener);

    }

    public void articleShow(String articleId, BaseHttpListener baseHttpListener) {

        BaseHttpClient.get().ready(ACT, "article_show")
                .add("article_id", articleId)
                .get(baseHttpListener);

    }

}
